﻿using AutoMapper;
using Coway.Ordering.Orders;
using Coway.Ordering.PayOrders;
using Coway.Ordering.Pdfs;
using Coway.Ordering.Products;
using Coway.Ordering.Sellers;

namespace Coway.Ordering
{
    public class OrderingApplicationAutoMapperProfile : Profile
    {
        public OrderingApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<Order, OrderDto>();
            CreateMap<OrderItem, OrderItemDto>();
            CreateMap<CreateUpdateOrderDto, Order>();
            CreateMap<Order, ExportOrderDto>();

            CreateMap<Seller, SellerDto>();
            CreateMap<CreateUpdateSellerDto, Seller>();

            CreateMap<Product, ProductDto>();
            CreateMap<CreateUpdateProductDto, Product>();

            CreateMap<CreateACHPayOrderDto, ACHPayOrder>();
            CreateMap<CreateCCRPayOrderDto, CCRPayOrder>();

            CreateMap<ACHPayOrder, ExportACHPayOrderDto>();
            CreateMap<CCRPayOrder, ExportCCRPayOrderDto>();
        }
    }
}
